package zkclient;

import org.I0Itec.zkclient.ZkClient;

public class CreateSession {
    /*
    创建⼀个zkClient实例来进⾏连接
    注意：zkClient通过对zookeeperAPI内部包装，将这个异步的会话创建过程同步化了
    */
    public static void main(String[] args) {
        ZkClient zkClient = new ZkClient("192.168.200.20:2181");
        System.out.println("ZooKeeper session established.");
    }
}
